package com.jumi.microservice.domain;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * - - - - - - - - - - - - - - -
 *
 * @author liuz
 * @date 2020/9/7 16:16
 * ToDoSomeThing
 * - - - - - - - - - - - - - - -
 */
public class FreightTempDTO implements Serializable {

    @ApiModelProperty("模板主键id")
    private Long id;

    @ApiModelProperty("模板名称")
    private String freightName;

    @ApiModelProperty("运费规则,0按照数量,1按照重量")
    private Integer rule;

    @ApiModelProperty("模板详情信息")
    List<FreightTempInfoDTO> info;

    public FreightTempDTO(Long id, String freightName, Integer rule, List<FreightTempInfoDTO> info) {
        this.id = id;
        this.freightName = freightName;
        this.info = info;
        this.rule = rule;
    }

    public FreightTempDTO() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFreightName() {
        return freightName;
    }

    public void setFreightName(String freightName) {
        this.freightName = freightName;
    }

    public List<FreightTempInfoDTO> getInfo() {
        return info;
    }

    public void setInfo(List<FreightTempInfoDTO> info) {
        this.info = info;
    }

    public Integer getRule() {
        return rule;
    }

    public void setRule(Integer rule) {
        this.rule = rule;
    }
}
